package cn.cool.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author LiuH
 * @since 2021-01-23
 */
@TableName("cool_notice_isread")
public class NoticeIsread implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 公告id
     */
    private Integer noticeId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 0:已读 1:未读
     */
    private Boolean isRead;

    /**
     * 0:未删除 1:已删除
     */
    @TableLogic
    private Boolean isDeleted;

    /**
     * 阅读时间
     */
    private Date gmtCreate;


    public Integer getNoticeId() {
        return noticeId;
    }

    public void setNoticeId(Integer noticeId) {
        this.noticeId = noticeId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Boolean getIsRead() {
        return isRead;
    }

    public void setIsRead(Boolean isRead) {
        this.isRead = isRead;
    }

    public Boolean getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    @Override
    public String toString() {
        return "NoticeIsread{" +
        "noticeId=" + noticeId +
        ", userId=" + userId +
        ", isRead=" + isRead +
        ", isDeleted=" + isDeleted +
        ", gmtCreate=" + gmtCreate +
        "}";
    }
}
